home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / cdnow.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  66 lines

  1. <search function="cdnow">
  2.   <name>CDNOW</name>
  3.   <description>
  4.     Search for music on CDNOW. Searches for artists by default.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>/album</td><td> - </td><td>Search for a specific album.</td></tr>
  8.           <tr><td>/song</td><td> - </td><td>Search for a specific song.</td></tr>
  9.           <tr><td>/label</td><td> - </td><td>Search for a record label.</td></tr>
  10.           <tr><td>/video</td><td> - </td><td>Find a music video.</td></tr>
  11.           <tr><td>/actor</td><td> - </td><td>Find an actor or director from a music video.</td></tr>
  12.        </table>
  13.     <div class="helpboxDescLabels">Examples:</div>
  14.     <table class="helpboxDescTable">
  15.           <tr><td>cdnow Mansun</td></tr>
  16.           <tr><td>cdnow Lobster /song</td></tr>
  17.       </table>
  18.   </description>
  19.   <category>Entertainment</category>
  20.   <link>http://www.cdnow.com/</link>
  21.   <contributor>Peter Risser, Ryan Edwards</contributor>
  22.   
  23.   <form name="cdnowf"
  24.         action="http://www.cdnow.com/cgi-bin/mserver/pagename=/RP/CDN/FIND/popsearch.html"
  25.         method="post">
  26.     <input type="hidden" name="string"/>
  27.     <input type="hidden" name="index"/>
  28.   </form>
  29.   
  30.   <script><![CDATA[
  31.     function cdnow(q)
  32.     {
  33.       var args = parseArgs(q, "album, song, label, video, actor");
  34.       if( nullArgs("cdnow",q) )
  35.         return false;
  36.       else if( args.switches.length == 1 )
  37.       {
  38.         switch( args.switches[0].name )
  39.         {
  40.           case "album": document.cdnowf.index.value = "t"; break;
  41.           case "song": document.cdnowf.index.value = "s"; break;
  42.           case "label": document.cdnowf.index.value = "l"; break;
  43.           case "video": document.cdnowf.index.value = "m"; break;
  44.           case "actor": document.cdnowf.index.value = "r"; break;
  45.         }
  46.         document.cdnowf.string.value = args.q;
  47.         submitForm(cdnowf);
  48.       }
  49.       else if( args.switches.length > 1 )
  50.         nullArgs("cdnow","?");
  51.       else
  52.       {
  53.         document.cdnowf.index.value = "a";
  54.         document.cdnowf.string.value = args.q;
  55.         submitForm(cdnowf);
  56.       }
  57.     }
  58.   ]]></script>
  59.  
  60.   <copyright>
  61.     Copyright (c) 2002 David Bau
  62.     Distributed under the terms of the
  63.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  64.   </copyright>
  65. </search>
  66.